package com.lanou3g.ptp.sign.mapper;

import com.lanou3g.ptp.entity.Sign;
import com.lanou3g.ptp.entity.TempRecord;
import com.lanou3g.ptp.vo.SignCondition;
import com.lanou3g.ptp.vo.SimpleAttdVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface SignMapper {
    int insert(Sign sign);

    int deleteById(Long id);

    List<Sign> findByCondition(SignCondition signCondition);

    List<SimpleAttdVO> signDetails(@Param("taskId") Long taskId, @Param("studentId") Long studentId);

    TempRecord findByTempId(Long tempId);

    TempRecord findByStartTimeAndEndTimeAndId(Date nowTime, Long tempId);
}
